<?php

namespace app\api\model;

use think\Model;


class Order extends Model
{
    // 表名
    protected $name = 'order';

    public function comments()
    {
        return $this->hasMany('Comment');
    }

    public function user()
    {
        return $this->belongsTo('User');
    }

    public function food()
    {
        return $this->belongsTo('Food');
    }
}
